package com.fa4j.system.file;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;
import java.util.Map;

/**
 * 系统文件接口
 */
@FeignClient(contextId = "systemFileClient", name = "fa4j-system", path = "system/file")
public interface SystemFileClient {
    /**
     * 根据 id 查询文件地址
     *
     * @param fileIds 账号 ID 集合
     * @return 账号列表
     */
    @GetMapping("file/byIds")
    Map<Long/*文件ID*/, String/*文件URL*/> queryFileUrlByIds(@RequestParam("fileIds") Collection<Long> fileIds);
}
